export function pev(that) {
  let url = that.$route.path
  switch (url) {
    case '/index/measurement':
      that.$router.push('/index/authorInformation')
      break;
    case '/index/researchProject':
      that.$router.push('/index/measurement')
      break;
    case '/index/PersonalStatement':
      that.$router.push('/index/researchProject')
      break;
    case '/index/tutors':
      that.$router.push('/index/PersonalStatement')
      break;
    case '/index/StudyResult':
      that.$router.push('/index/t,utors')
      break;
    case '/index/expert':
      that.$router.push('/index/StudyResult')
      break;
    case '/index/PrintDeclaration':
      that.$router.push('/index/expert')
      break;
    case '/index/UploadDeclaration':
      that.$router.push('/index/PrintDeclaration')
      break;
    case '/index/shenhe':
      that.$router.push('/index/UploadDeclaration')
      break;
    case '/index/pingshen':
      that.$router.push('/index/shenhe')
      break;
    case '/index/xiangmuchaxun':
      that.$router.push('/index/pingshen')
      break;
    case '/index/xiangmudaochu':
      that.$router.push('/index/xiangmuchaxun')
      break;
    case '/index/cns':
      that.$router.push('/index/cns')
      break;
    default:
      break;
  }
}

export function next(that) {
  let url = that.$route.path
  switch (url) {
    case 'index/authorInformation':
      that.$router.push('/index/measurement')
      break;
    case '/index/measurement':
      that.$router.push('/index/researchProject')
      break;
    case '/index/researchProject':
      that.$router.push('/index/PersonalStatement')
      break;
    case '/index/PersonalStatement':
      that.$router.push('/index/tutors')
      break;
    case '/index/tutors':
      that.$router.push('/index/StudyResult')
      break;
    case '/index/StudyResult':
      that.$router.push('/index/expert')
      break;
    case '/index/expert':
      that.$router.push('/index/PrintDeclaration')
      break;
    case '/index/PrintDeclaration':
      that.$router.push('/index/UploadDeclaration')
      break;
    case '/index/UploadDeclaration':
      that.$router.push('/index/shenhe')
      break;
    case '/index/shenhe':
      that.$router.push('/index/pingshen')
      break;
    case '/index/pingshen':
      that.$router.push('/index/xiangmuchaxun')
      break;
    case '/index/xiangmuchaxun':
      that.$router.push('/index/xiangmudaochu')
      break;
    case '/index/xiangmudaochu':
      that.$router.push('/index/xiangmuchaxun')
      break;
    default:
      break;
  }
}